import service from '@/utils/request'


// 获取跟进信息
export const useFollowApi = (id: Number) => {
	return service.get('/followupDetails/' + id)
}

// 新增/修改跟进信息
export const useFollowSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/followupDetails/update', dataForm)
	} else {
		return service.post('/followupDetails/save', dataForm)
	}
}

export const useDictDataApi = (id: Number) => {
	return service.get('/sys/dict/data/' + id)
}

export const useDictDataSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/dict/data', dataForm)
	} else {
		return service.post('/sys/dict/data', dataForm)
	}
}
